﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UC_DichVu_Edit.ascx.cs" Inherits="QuanLyKhachSan.UC_DichVu_Edit" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<script src='<%=ResolveUrl("~/Scripts/jquery-1.4.1.min.js")%>' type="text/javascript"></script>
<script type="text/javascript" language="javascript">
    $(document).ready(function () {
        try {
            var hfStatus = document.getElementById('<%=hfStatus.ClientID%>');
            if (hfStatus.value == "1") {
                parent.Close("isUpdated");
            }
        } catch (e) {
            alert(e)
        }
    });
    function cmdCancel_OnClientClicking(sender, args) {
        try {
            args.set_cancel(true);
            parent.Close("");
        } catch (e) {
            alert(e);
        }
    }
</script>
<style type="text/css">
    .style1
    {
        font-family: Tahoma;
        font-size: 12px;
        width: 50px;
    }
</style>
<table width="100%">
    <tr>
        <td class="style1">
            <asp:Label ID="lblDichVuName" runat="server" Text="Dịch vụ"></asp:Label>
        </td>
        <td>
            <telerik:RadTextBox ID="txtDichVuName" runat="server" EmptyMessage="Nhập tên dịch vụ" Width="200" ValidationGroup="Submit">
            </telerik:RadTextBox>
            <br />
            <asp:RequiredFieldValidator
                ID="rfvDichVuName" Runat="server" Display="Dynamic" ControlToValidate="txtDichVuName" ValidationGroup="Submit"
                ErrorMessage="Yêu cầu nhập tên của dịch vụ" style="font-family: Tahoma; font-size: 12px">
            </asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="style1">
            <asp:Label ID="lblGiaTien" runat="server" Text="Giá tiền"></asp:Label>
        </td>
        <td>
            <telerik:RadNumericTextBox ID="txtGiaTien" runat="server" Type="Currency" MinValue="0" EmptyMessage="Nhập giá tiền" Width="200" ValidationGroup="Submit">
            </telerik:RadNumericTextBox>
            <br />
            <asp:RequiredFieldValidator
                ID="rfvGiaTien" Runat="server" Display="Dynamic" ControlToValidate="txtGiaTien" ValidationGroup="Submit"
                ErrorMessage="Yêu cầu nhập giá tiền của dịch vụ" style="font-family: Tahoma; font-size: 12px">
            </asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center">            
            <table width="200px">
                <tr>
                    <td align="right">
                        <telerik:RadButton ID="cmdCancel" runat="server" Text="Cancel" OnClientClicking="cmdCancel_OnClientClicking">
                        </telerik:RadButton>    
                    </td>
                    <td align="left">
                        <telerik:RadButton ID="cmdOK" runat="server" Text="OK" onclick="cmdOK_Click" ValidationGroup="Submit">
                        </telerik:RadButton> 
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<asp:HiddenField ID="hfStatus" runat="server" Value="0" />
